﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Runtime.Remoting.Metadata.W3cXsd2001;
using System.Security.Policy;
using System.Threading.Tasks;
using System.Xml.Linq;
using CoreShop.Library;
using CoreShop.Model;
using CoreShop.Model.UI;
using CoreShop.Repository;
using Newtonsoft.Json;
using SqlSugar;
using static CoreShop.Library.GlobalEnumVars;


namespace CoreShop.Services
{
    /// <summary>
    /// 接口实现
    /// </summary>
    public class corecmsstoreorganizationService : Repository<corecmsstoreorganization>, IcorecmsstoreorganizationService
    {

        /// <summary>
        /// 存在共享数据
        /// </summary>
        /// <param name="orgType"></param>
        /// <returns></returns>
        public bool ExistOrg(int orgType)
        {
            return base.AsQueryable().Where(p => p.isDelete == false && p.orgType == orgType).Any();
        }


    }
}